/*
 * @Date: 2020-08-08 11:17:34
 * @LastEditors: 舟玉成
 * @写好代码的烂程序员: ↑
 * @LastEditTime: 2020-08-08 15:47:53
 */
import axios from 'axios'
export default {
  // 请求接口示例
  //请求轮播图
  postLunbo: (params) => {
    return axios.post("http://localhost:3000/banner", params);
  },
  //请求热门推荐
  postHotTJ: (params) => {
    return axios.post("http://localhost:3000/personalized?limit=8", params);
  },
  //获取个性推荐
  // getselfTJ: (params) => {
  //   return axios.post("http://localhost:3000/recommend/resource", params);
  // },
  getselfTJ: (params) => {
    return axios.post("http://localhost:3000/top/playlist/highquality?before=1503639064232&limit=3", params);
  },
  //获取全部新碟
  postnewDie: (params) => {
    return axios.get("http://localhost:3000/album/new?area=ALL&limit=10", params);
  },
  //获取云音乐飙升榜  新歌榜  和网易原创
  // postBiaoS: (params) => {
  //   return axios.post("http://localhost:3000/recommend/songs", params);
  // },

        //假的榜单  飙升
      postBiaoS: (params) => {
        return axios.post("http://localhost:3000/playlist/detail?id=2933356980", params);
      },
      //新歌
      postBiaoSS: (params) => {
        return axios.post("http://localhost:3000/playlist/detail?id=2933352993", params);
      },
      //原创
      postBiaoSSS: (params) => {
        return axios.post("http://localhost:3000/playlist/detail?id=2933356977", params);
      },
  //获取入驻歌手
  getRZ: (params) => {
    return axios.get("http://localhost:3000/artist/list?type=-1&area=-1", params);
  },
  //明星主播
  getMXZB: (params) => {
    return axios.get("http://localhost:3000/dj/recommend/type?type=1", params);
  },
  //登录接口   数据传入进来
  posyLogin: (phone,pass) => {
    return axios.post(`http://localhost:3000/login/cellphone?phone=${phone}&password=${pass}`);
  },
  //注册接口
  //还没写


  ceshi: (params) => {
    return axios.post(`http://localhost:3000/user/subcount`,params);
  },
  //获取歌曲详情  id
  posyGQid: (id=33894318) => {
    return axios.post(`http://localhost:3000/song/url?id=${id}`);
  },
  ceshiLOGIN:()=>{
    return axios.post('http://localhost:3000/event?pagesize=5',{withCredentials: true})
  }
};
